<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>03-object</title>
</head>

<body>
    <script>
        class Phone extends Object {

            call() {
                console.log('我要打电话');
            }
        }
        let hw = new Phone();
        console.log();
        hw.call();

        /*
            1. Object 是所有类的父类，根类，超类
            2. 默认所有的类都继承了 Object
            3. Object 都有一个无参构造函数
        */
    </script>
</body>

</html>